package org.aplombh.java.utils;

public class Pair_r implements Comparable<Pair_r> {
    int l;
    int r;

    public Pair_r(int l, int r) {
        this.l = l;
        this.r = r;
    }

    public Pair_r() {
    }

    @Override
    public int compareTo(Pair_r o) {
        return this.r - o.r;
    }

    public Pair to() {
        return new Pair(l,r);
    }
}